﻿using System;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    internal class Program
    {
        //static async Task Main(string[] args)
        //{
        //    await Task.Delay(1000);
        //}
        static async void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            await Task.Delay(1000 * 300);

            while (true)
            {
                Console.WriteLine("PRESS ESC KEY  TO EXIT....");
                ConsoleKey key = Console.ReadKey().Key;
                if (key == ConsoleKey.Escape)
                    break;
            }
            return;
        }
    }
}
